@SETLOCAL
@prompt $g$s
msbuild /nologo /v:q
@if ERRORLEVEL 1 (
	@echo Build failed, will not create schemas
	@goto :EOF
)
@mkdir Schemas.tmp
xsd bin\Debug\Liquid.Windows.dll /nologo /out:Schemas.tmp ^
	/type:Liquid.Windows.Commands.CommandSet ^
	/type:Liquid.Windows.ToolStrips.Settings.ToolStripSettings
move /Y Schemas.tmp\schema0.xsd Commands\CommandSet.xsd > NUL
move /Y Schemas.tmp\schema1.xsd ToolStrips\ToolStripSettings.xsd > NUL
@rmdir /S /Q Schemas.tmp
@echo.